﻿//-----------------------------------------------------------------------
// <summary>
//  A module in Prism is a logical unit in your application.
// </summary>
// <copyright file="NewsArticleView.xaml.cs" company="DSSoftLogic">
//     Copyright@ DSSoftLogic 2011, Non-Commercial. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Property.Silverlight.View.Views
{
    using System.ComponentModel.Composition;
    using System.Diagnostics.CodeAnalysis;
    using System.Windows.Controls;
    using Property.Silverlight.Infrastructure;
    ////using Property.Silverlight.Module.Controllers;
    using Property.Silverlight.ViewModelEx;

    /// <summary>
    /// The news article.
    /// </summary>
    ////[ViewExport(RegionNames.ResearchRegion)]
    [Export]
    public partial class NewsArticleView : UserControl
    {
        /// <summary>
        /// The news controller.
        /// </summary>
        ////[SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1401:FieldsMustBePrivate", Justification = "Reviewed. Suppression is OK here."), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields", Justification = "This is public to avoid possible problems with MEF and partial trust.")]
        ////[Import]
        ////public INewsController NewsController;

        /// <summary>
        /// Initializes a new instance of the <see cref="NewsArticleView"/> class.
        /// </summary>
        public NewsArticleView()
        {
            this.InitializeComponent();
        }

        /// <summary>
        /// Sets the news article view model.
        /// </summary>
        ////[Import]
        ////[SuppressMessage("Microsoft.Design", "CA1044:PropertiesShouldNotBeWriteOnly", Justification = "Needs to be a property to be composed by MEF")]
        ////public NewsArticleViewModel NewsArticleViewModel
        ////{
        ////    set
        ////    {
        ////        this.DataContext = value;
        ////    }
        ////}
    }
}
